import {
	request
} from "../common/config.js"

// 用户登录
export function Login(phone, password) {
	return request({
		url: `/login/cellphone?phone=${phone}&password=${password}`,
		method: 'post'
	})
}

//获取用户歌单
export function _getUserSongsheet(uid) {
	return request({
		url: `/user/playlist?uid=${uid}&limit=60`,
		method: 'get'
	})
}
// 获取用户喜欢音乐
export function UserLikeMusic(uid) {
	return request({
		url: `/likelist?uid=${uid}`,
		method: 'get'
	})
}

export function _getUserInfo(uid) {
	return request({
		url: `/user/detail`,
		method: 'get',
		params: {
			uid
		}
	})
}

export function _getVipInfo() {
	return request({
		url: `/vip/info`,
		method: 'get'
	})
}

export function _getUserEvent(uid) {
	return request({
		url: `/user/event?uid=${uid}`,
		method: 'get'
	})
}

export function _getUserDj(uid) {
	return request({
		url: `/user/dj?uid=${uid}`,
		method: 'get'
	})
}